package com.hangzhou.welbeing.welbeinginstrument.activity;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.hangzhou.welbeing.welbeinginstrument.R;
import com.hangzhou.welbeing.welbeinginstrument.utils.Utils;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 时间 2017 年 09 月 14.
 * 作者 Administrator  刘传华
 * 公司 杭州惟君医疗科技有限公司
 * 包名 com.hangzhou.welbeing.pregnant.welbeing_pregnant.activity
 * 工程名 welbeing_pregnant
 *
 * @desc 账号帮定
 */
public class AccountToHelpDecideActivity extends Activity {
    @Bind(R.id.activity_account_to_help_decide_iv_return)
    ImageView activityAccountToHelpDecideIvReturn;
    @Bind(R.id.activity_account_to_help_decide_rl_phone_number)
    RelativeLayout activityAccountToHelpDecideRlPhoneNumber;
    @Bind(R.id.activity_account_to_help_decide_tv_qq_unbing)
    TextView activityAccountToHelpDecideTvQqUnbing;
    @Bind(R.id.activity_account_to_help_decide_rl_qq)
    RelativeLayout activityAccountToHelpDecideRlQq;
    @Bind(R.id.activity_account_to_help_decide_tv_wechat_unbing)
    TextView activityAccountToHelpDecideTvWechatUnbing;
    @Bind(R.id.activity_account_to_help_decide_rl_wechat)
    RelativeLayout activityAccountToHelpDecideRlWechat;


    @Bind(R.id.activity_account_to_help_decide_tv_phone_number)
    TextView activityAccountToHelpDecideTvPhonenNumber;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_account_to_help_decide);
        ButterKnife.bind(this);


        Utils.setStatusBar(this,false,false);
        Utils.setStatusTextColor(true,this);

        SharedPreferences sp =getSharedPreferences("second_app_internal_data", 0);
        String tel = sp.getString("tel","");
        if(tel.equals("")){
            activityAccountToHelpDecideTvPhonenNumber.setText("");
        }else {
            activityAccountToHelpDecideTvPhonenNumber.setText(tel);
        }
      //  loadThirdPartyDate();
    }



    @OnClick({R.id.activity_account_to_help_decide_iv_return, R.id.activity_account_to_help_decide_rl_phone_number})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.activity_account_to_help_decide_iv_return:
                finish();
                break;
            case R.id.activity_account_to_help_decide_rl_phone_number:  //手机号
               /* Intent intent = new Intent(AccountToHelpDecideActivity.this, ChangePhoneNumberActivity.class);
                startActivity(intent);*/
                break;
        }
    }
    @Override
    public void onBackPressed() {
        super.onBackPressed();
        finish();
        overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
    }
}
